Skip to content

backport v6#5

Open
callycodes wants to merge 1795 commits intoAllTheTables:mainfrom
vercel:main
Open

backport v6#5
callycodes wants to merge 1795 commits intoAllTheTables:mainfrom
vercel:main

Conversation

@callycodes
Copy link

Background

Summary

Manual Verification

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)
  • I have reviewed this pull request (self-review)

Future Work

Related Issues

shaper and others added 30 commits February 20, 2026 08:38
…artbeat keep-alive (#12729)

## Background

Video generation requests can take a long time to complete, and HTTP connections may timeout during processing. Server-Sent Events (SSE) with heartbeat keep-alive messages provide a way to maintain the connection while the video is being generated.

## Changes

Added SSE support for video generation in the gateway provider with heartbeat keep-alive functionality. The implementation:

- Sets `accept: 'text/event-stream'` header in video generation requests
- Parses SSE events using `parseJsonEventStream` with a discriminated union schema for result and error events
- Properly handles SSE error events by throwing `APICallError` with structured error data

## Manual Verification

Ran example video scripts against a gateway server supporting SSE format response.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

## Related Issues
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## ai@6.0.95

### Patch Changes

-   Updated dependencies [73b7e09]
    -   @ai-sdk/gateway@3.0.53

## @ai-sdk/angular@2.0.96

### Patch Changes

-   ai@6.0.95

## @ai-sdk/gateway@3.0.53

### Patch Changes

- 73b7e09: feat (provider/gateway): add SSE support for video generation
with heartbeat keep-alive

## @ai-sdk/langchain@2.0.101

### Patch Changes

-   ai@6.0.95

## @ai-sdk/llamaindex@2.0.95

### Patch Changes

-   ai@6.0.95

## @ai-sdk/react@3.0.97

### Patch Changes

-   ai@6.0.95

## @ai-sdk/rsc@2.0.95

### Patch Changes

-   ai@6.0.95

## @ai-sdk/svelte@4.0.95

### Patch Changes

-   ai@6.0.95

## @ai-sdk/vue@3.0.95

### Patch Changes

-   ai@6.0.95

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
…to `BedrockChatModelId` (#12657)

For some reason, the latest Anthropic models (starting with some from
their 4.5 models) were missing from `BedrockChatModelId`. They _were_
however present in `BedrockAnthropicModelId`. Not sure why.

When I added support for Opus 4.6 and Sonnet 4.6, I realized this but
left it untouched because I wasn't sure whether the previous omissions
(of e.g. Opus 4.5) were intentional.

Opening this PR to fix it, or please let me know if this was _not_ just
an oversight from before. :)

cc @lgrammel @gr2m
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @ai-sdk/amazon-bedrock@4.0.63

### Patch Changes

- dc34ced: fix(provider/amazon-bedrock): add missing latest Anthropic
model IDs to `BedrockChatModelId`

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

as a follow up to #12654, we will introduce the same callbacks for
streamText function

## Summary

- added callback `experimental_onStart` that exposes the data/events
that happen at the very beginning
- added callback `experimental_onStepStart`
- added callback `experimental_onToolCallStart`
- added callback `experimental_onToolCallFinish`

## Manual Verification



## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

- add similar callbacks for the agent loop
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## ai@6.0.96

### Patch Changes

-   30c9de6: feat(ai): experimental callbacks for streamText

## @ai-sdk/angular@2.0.97

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/langchain@2.0.102

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/llamaindex@2.0.96

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/react@3.0.98

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/rsc@2.0.96

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/svelte@4.0.96

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

## @ai-sdk/vue@3.0.96

### Patch Changes

-   Updated dependencies [30c9de6]
    -   ai@6.0.96

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
…s docs (#12741)

## Background

Confident AI is an LLM evaluation and observability framework who
recently shipped their latest AI SDK observability integration through
opentelemetry.

## Summary

Updated `content/providers/05-observability/` for:
- Adding Confident AI as a provider in the observability integration
docs
- Followed alphabetical order currently being maintained in the index
file

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

---------

Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com>
## Background

as a follow up to #12654, we will
introduce the same callbacks for the `ToolLoopAgent`

## Summary

- added callback `experimental_onStart` that exposes the data/events
that happen at the very beginning
- added callback `experimental_onStepStart`
- added callback `experimental_onToolCallStart`
- added callback `experimental_onToolCallFinish`

## Manual Verification

## Future Work

- callbacks aren't currently passed through for streaming - will need to
merge #12708 first

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## ai@6.0.97

### Patch Changes

-   ebfdad1: feat(ai): experimental callbacks in ToolLoopAgent

## @ai-sdk/angular@2.0.98

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/langchain@2.0.103

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/llamaindex@2.0.97

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/react@3.0.99

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/rsc@2.0.97

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/svelte@4.0.97

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

## @ai-sdk/vue@3.0.97

### Patch Changes

-   Updated dependencies [ebfdad1]
    -   ai@6.0.97

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.

We suggest you read the following contributing guide we've created
before submitting:

https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

The streaming docs page references OpenAI's `gpt-4.1` specifically, but
the code
example uses `__MODEL__` which renders a model selector dropdown. The
prose should
match the code.

## Summary

Removed the hardcoded mention of "OpenAI's `gpt-4.1`" from the streaming
foundations page so the text is model-agnostic.

## Manual Verification

<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works
end-to-end as expected (excluding automated tests).
Remove the section if it's not needed (e.g. for docs).
-->

## Checklist

<!--
Do not edit this list. Leave items unchecked that don't apply. If you
need to track subtasks, create a new "## Tasks" section

Please check if the PR fulfills the following requirements:
-->

- [ ] Tests have been added / updated (for bug fixes / features)
- [X] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [ ] I have reviewed this pull request (self-review)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
 -->

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.

We suggest you read the following contributing guide we've created
before submitting:

https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

<!-- Why was this change necessary? -->

Alibaba provider was added to v6 but it wasn't added to changlog at root

## Summary

<!-- What did you change? -->

Added alibaba

## Manual Verification

N/A

<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works
end-to-end as expected (excluding automated tests).
Remove the section if it's not needed (e.g. for docs).
-->

## Checklist

<!--
Do not edit this list. Leave items unchecked that don't apply. If you
need to track subtasks, create a new "## Tasks" section

Please check if the PR fulfills the following requirements:
-->

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
 -->

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.

We suggest you read the following contributing guide we've created
before submitting:

https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

OpenAI's API sometimes omits the `action` field in web search tool
responses, leading to validation errors.

For example, the response sometimes lacks the action field (see updated
fixture):
```
    {
      "id": "ws_006c87998160835a00699768d460e88190ab44048180541660",
      "type": "web_search_call",
      "status": "completed"
    },
```

## Summary

Set the parameter to `.optional()`

## Manual Verification

First, just run the repro code example to observe the error.
Then apply the fix and run the same example again

## Checklist

<!--
Do not edit this list. Leave items unchecked that don't apply. If you
need to track subtasks, create a new "## Tasks" section

Please check if the PR fulfills the following requirements:
-->

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
 -->

## Related Issues

Similar to #10646 by @aayush-kapoor and
#10885 by @kkawamu1

Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @ai-sdk/azure@3.0.32

### Patch Changes

-   Updated dependencies [d5f7312]
    -   @ai-sdk/openai@3.0.31

## @ai-sdk/openai@3.0.31

### Patch Changes

-   d5f7312: fix(openai): change web search tool action to be optional

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## background

follow-up to `#12706`

`#12706` fixed runtime handling for optional `web_search_call.action`,
but it also regenerated web-search fixtures/snapshots with unrelated
output churn
that made the snapshot diffs noisy and reduced the signal of existing
fixture-driven action mapping coverage

## summary

- restored stable pre-`#12706` fixture/snapshot/example inputs for
web-search tests
- files restored:
-
`packages/openai/src/responses/__fixtures__/openai-web-search-tool.1.json`
-
`packages/openai/src/responses/__fixtures__/openai-web-search-tool.1.chunks.txt`
-
`packages/openai/src/responses/__snapshots__/openai-responses-language-model.test.ts.snap`
  - `examples/ai-functions/src/generate-text/openai-web-search-tool.ts`
  - `examples/ai-functions/src/stream-text/openai-web-search-tool.ts`
- kept the runtime fix from `#12706` unchanged

## manual verification

- ran:
- `pnpm -C packages/openai test:node
src/responses/openai-responses-language-model.test.ts -t "web search
tool"`
  - `pnpm -C packages/openai type-check`
- confirmed web-search test slice passes and snapshot noise is reduced
to the intended fixture restoration

## checklist

- [x] tests have been added / updated (for bug fixes / features)
- [ ] documentation has been added / updated (for bug fixes / features)
- [ ] a _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] i have reviewed this pull request (self-review)

## related issues

- follow-up to `#12706`
…ontrol (#12787)

<!--
Welcome to contributing to AI SDK! We're excited to see your changes.

We suggest you read the following contributing guide we've created
before submitting:

https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

<!-- Why was this change necessary? -->

Alibaba supports cache control for system, user, assistant, and tool
message types, but only support for system messages were correctly
implemented before.
Relevant doc: [Alibaba context
cache](https://www.alibabacloud.com/help/en/model-studio/context-cache)

## Summary

<!-- What did you change? -->

Updated implementation to support cache control for single-and-multi
part messages for all supported message types.

## Manual Verification

<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works
end-to-end as expected (excluding automated tests).
Remove the section if it's not needed (e.g. for docs).
-->

- Verified it e2e with test scripts, you can find a couple of them
[here](https://github.com/vercel/ai-gateway/pull/1269/changes#diff-845bdece32290bb351c0556e961a2b4f302c8072d7447ff91b484d89437a7f4f)
and
[here](https://github.com/vercel/ai-gateway/pull/1269/changes#diff-17b918712ba539042cc52029a700ee9aaeac3d3f1e69be95265fe879bf3218ee).

## Checklist

<!--
Do not edit this list. Leave items unchecked that don't apply. If you
need to track subtasks, create a new "## Tasks" section

Please check if the PR fulfills the following requirements:
-->

- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
 -->

- Backport this to v5

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @ai-sdk/alibaba@1.0.5

### Patch Changes

- 6fe0630: fix(provider/alibaba): fix cache control for non-system
messages

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Summary

* Adds a workflow that listens to the `ai_provider_models`
repository_dispatch event, which includes new and obsolete model IDs for
a given provider.
* Opens an issue with this information.

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

We should add a skill for how to add new model IDs, or remove obsolete
model IDs.
Ideally, an agent should pick up work on these in the future.

## Related Issues

N/A
## Summary

Fixes unescaped strings being interpreted as YAML
## Summary

- Fixes the `ai-provider-models` workflow failing with `unidentified
alias "*Provider:**"` YAML parsing error
- Replaces the two-step approach (`actions/github-script` +
`octokit/request-action`) with a single `actions/github-script` step
that builds the body and creates the issue directly via
`github.rest.issues.create()`
- Root cause: `octokit/request-action@v2.x` parses all `with:` input
values as YAML, causing markdown `**Provider:**` to be misinterpreted as
a YAML alias

Fixes:
https://github.com/vercel/ai/actions/runs/22365606983/job/64730638388

## Test plan

- [ ] Re-run the `ai_provider_models` repository dispatch event and
verify the issue is created successfully

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
## Background

OpenAI released `gpt-5.3-codex` in the API:
https://x.com/OpenAIDevs/status/2026379092661289260?s=20

This PR adds support for it.

## Summary

Adds `gpt-5.3-codex` to the OpenAI and Gateway provider model lists.
Also adds `gpt-5.2-codex` to the OpenAI model list, which was previously
missing. Docs referencing `gpt-5.2-codex` were updated as well to
include `gpt-5.3-codex`.

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## ai@6.0.98

### Patch Changes

-   Updated dependencies [0c9395b]
    -   @ai-sdk/gateway@3.0.54

## @ai-sdk/angular@2.0.99

### Patch Changes

-   ai@6.0.98

## @ai-sdk/azure@3.0.33

### Patch Changes

-   Updated dependencies [0c9395b]
    -   @ai-sdk/openai@3.0.32

## @ai-sdk/gateway@3.0.54

### Patch Changes

-   0c9395b: feat(provider/openai): add `gpt-5.3-codex`

## @ai-sdk/langchain@2.0.104

### Patch Changes

-   ai@6.0.98

## @ai-sdk/llamaindex@2.0.98

### Patch Changes

-   ai@6.0.98

## @ai-sdk/openai@3.0.32

### Patch Changes

-   0c9395b: feat(provider/openai): add `gpt-5.3-codex`

## @ai-sdk/react@3.0.100

### Patch Changes

-   ai@6.0.98

## @ai-sdk/rsc@2.0.98

### Patch Changes

-   ai@6.0.98

## @ai-sdk/svelte@4.0.98

### Patch Changes

-   ai@6.0.98

## @ai-sdk/vue@3.0.98

### Patch Changes

-   ai@6.0.98

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
…rs (#12812)

## Background

we moved ai-functions examples from flat files to provider folders so
paths are easier to navigate and scale
this also aligned a few inconsistent names left after the move

## Summary

- reorganize these groups into folder-based provider paths
  - `stream-text`
  - `generate-text`
  - `agent`
  - `embed`
  - `embed-many`
  - `generate-video`
  - `generate-speech`
- remove old top-level files for those migrated groups
- normalize a few names during the move
- `url-context-wtih-google-search.ts` ->
`url-context-with-google-search.ts`
  - `responses-lmstudio*` -> `lmstudio*` in open-responses folders
- update gateway timeout run-path comments to the new folder paths

## Manual Verification

- ran typecheck
  - `pnpm exec tsc -p tsconfig.with-examples.json --noEmit`
- ran one example in each migrated group
  - `pnpm exec tsx src/stream-text/anthropic/index.ts`
  - `pnpm exec tsx src/generate-text/mock/index.ts`
  - `pnpm exec tsx src/agent/anthropic/cache-instruction.ts`
  - `pnpm exec tsx src/embed/gateway/index.ts`
  - `pnpm exec tsx src/embed-many/gateway/index.ts`
  - `pnpm exec tsx src/generate-video/gateway/timeout.ts`
  - `pnpm exec tsx src/generate-speech/openai/index.ts`

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Background

the ai-functions examples were moved to provider folders with `basic.ts`
entry files
`AGENTS.md` still showed the old flat path example and had no explicit
layout guidance

## Summary

- update the running example command to `pnpm tsx
src/stream-text/openai/basic.ts`
- add an `AI Functions Example Layout` section in `AGENTS.md`
- document the expected pattern
`examples/ai-functions/src/<function>/<provider>/`
- document `basic.ts` as the provider entry file
- clarify that flat top-level provider files should not be created

## Manual Verification

- reviewed rendered markdown in `AGENTS.md`
- confirmed the paths match the current examples structure

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Summary

- Adds `grok-imagine-image-pro` and `grok-2-image-1212` to
`XaiImageModelId` type for IDE autocomplete support
- Adds example for `grok-imagine-image-pro` image generation

All other model IDs from
[#12808](#12808) were already present
in the appropriate type unions (`XaiChatModelId`, `XaiImageModelId`,
`XaiVideoModelId`). The two missing entries were both image model IDs
that hadn't been added to `XaiImageModelId`.

Verified against the [xAI models
documentation](https://docs.x.ai/docs/models).

## Test plan

- [x] `pnpm test` passes (217/217 tests)
- [x] `pnpm build` succeeds
- [x] TypeScript type check passes for `packages/xai` and
`examples/ai-functions`

Closes #12808

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
## Background

a new model `gpt-5.3-codex` was added in
#12814
we should have ai-functions coverage examples for both `generateText`
and `streamText`

## Summary

- add `generate-text` example for `gpt-5.3-codex`
  - `examples/ai-functions/src/generate-text/openai/gpt-5-3-codex.ts`
- add `stream-text` example for `gpt-5.3-codex`
  - `examples/ai-functions/src/stream-text/openai/gpt-5-3-codex.ts`

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @ai-sdk/xai@3.0.58

### Patch Changes

- 6af6c5c: Added `grok-imagine-image-pro` and `grok-2-image-1212` to
XaiImageModelId type for better autocomplete support.

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Summary

Adds missing model IDs from
[#12810](#12810) to the appropriate
type unions, verified against the live OpenAI API.

### Added to `OpenAIChatModelId`
- `gpt-4o-audio-preview`, `gpt-4o-audio-preview-2024-12-17`,
`gpt-4o-audio-preview-2025-06-03`
- `gpt-4o-mini-audio-preview`, `gpt-4o-mini-audio-preview-2024-12-17`
- `gpt-4o-search-preview`, `gpt-4o-search-preview-2025-03-11`
- `gpt-4o-mini-search-preview`, `gpt-4o-mini-search-preview-2025-03-11`
- `gpt-5.1-2025-11-13`, `gpt-5.2-2025-12-11`, `gpt-5.2-pro-2025-12-11`
- `gpt-3.5-turbo-16k`

### Added to `OpenAIResponsesModelId`
- `o4-mini`, `o4-mini-2025-04-16`
- `gpt-5.1-2025-11-13`, `gpt-5.2-2025-12-11`, `gpt-5.2-pro-2025-12-11`

### Added to `OpenAIImageModelId`
- `chatgpt-image-latest`

### Added to `OpenAISpeechModelId`
- `tts-1-1106`, `tts-1-hd-1106`, `gpt-4o-mini-tts-2025-03-20`,
`gpt-4o-mini-tts-2025-12-15`

### Added to `OpenAITranscriptionModelId`
- `gpt-4o-transcribe-diarize`, `gpt-4o-mini-transcribe-2025-03-20`,
`gpt-4o-mini-transcribe-2025-12-15`

### Added to `OpenAICompletionModelId`
- `gpt-3.5-turbo-instruct-0914`

### Skipped (no corresponding type union)
Realtime models (`gpt-realtime-*`), standalone audio models
(`gpt-audio-*`), moderation models (`omni-moderation-*`), search API
models (`gpt-5-search-api-*`), Sora video models, and base models
(`davinci-002`, `babbage-002`).

### Excluded after verification
- `gpt-4.5-preview` — model does not exist on OpenAI
- `gpt-5-pro` — responses-only, not supported with chat completions API
- Audio/search preview models removed from responses type — not
supported with Responses API
- `gpt-3.5-turbo-16k` removed from responses type — not supported with
Responses API

## Test plan
- [x] All 584 tests pass (`pnpm test` in packages/openai)
- [x] Build succeeds
- [x] All new chat model IDs verified against live Chat Completions API
- [x] All new responses model IDs verified against live Responses API

Closes #12810

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @ai-sdk/azure@3.0.34

### Patch Changes

-   Updated dependencies [624e651]
    -   @ai-sdk/openai@3.0.33

## @ai-sdk/openai@3.0.33

### Patch Changes

- 624e651: Added missing model IDs to OpenAIChatModelId,
OpenAIResponsesModelId, OpenAIImageModelId, OpenAISpeechModelId,
OpenAITranscriptionModelId, and OpenAICompletionModelId types for better
autocomplete support.

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Summary

- Added 18 new model IDs to `GoogleGenerativeAIModelId` type in
`google-generative-ai-options.ts` for better autocomplete support,
including gemini-2.0, gemini-2.5, gemini-3.1, gemma, robotics, and other
new model variants
- Added 2 new model IDs (`veo-3.0-generate-001`,
`veo-3.0-fast-generate-001`) to `GoogleGenerativeAIVideoModelId` type in
`google-generative-ai-video-settings.ts`
- Added a patch changeset for `@ai-sdk/google`

Closes #12809

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
vercel-ai-sdk bot and others added 30 commits March 13, 2026 17:19
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/google@4.0.0-beta.9

### Patch Changes

-   e59176c: chore(google): update v3 specs to v4

## @ai-sdk/google-vertex@5.0.0-beta.11

### Patch Changes

-   e59176c: chore(google): update v3 specs to v4
-   Updated dependencies [e59176c]
    -   @ai-sdk/google@4.0.0-beta.9

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [pkce-challenge](https://redirect.github.com/crouchcd/pkce-challenge)
| [`5.0.0` →
`5.0.1`](https://renovatebot.com/diffs/npm/pkce-challenge/5.0.0/5.0.1) |
![age](https://developer.mend.io/api/mc/badges/age/npm/pkce-challenge/5.0.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pkce-challenge/5.0.0/5.0.1?slim=true)
|

---

### Release Notes

<details>
<summary>crouchcd/pkce-challenge (pkce-challenge)</summary>

###
[`v5.0.1`](https://redirect.github.com/crouchcd/pkce-challenge/blob/HEAD/CHANGELOG.md#501---2025-11-22)

[Compare
Source](https://redirect.github.com/crouchcd/pkce-challenge/compare/5.0.0...5.0.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 05:00 AM and 05:59 AM, only on
Friday ( * 5 * * 5 ) in timezone America/Los_Angeles, Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/vercel/ai).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNjYuMTQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
## Background

this doc is essentially to track all the breaking changes that may
happen in v7 of AISDK

Remember to make changes to this doc whenever a breaking change is
introduced

## Summary

- added a migration guide to track the breaking change of passing a
`tracer` via the `integrations` option and not via the `tracer` option

## Manual Verification

na

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Background

As part of the ongoing migration from V3 to V4 provider specification
types, the `xai` package still referenced V3 types from `provider`.

## Summary

Similar to e.g. #13375, this updates the xAI provider to use the V4 spec
types.

## Manual Verification

N/A

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
…11306)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@smithy/eventstream-codec](https://redirect.github.com/smithy-lang/smithy-typescript/tree/main/packages/eventstream-codec)
([source](https://redirect.github.com/smithy-lang/smithy-typescript/tree/HEAD/packages/eventstream-codec))
| [`4.0.1` →
`4.2.10`](https://renovatebot.com/diffs/npm/@smithy%2feventstream-codec/4.0.1/4.2.10)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@smithy%2feventstream-codec/4.2.10?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@smithy%2feventstream-codec/4.0.1/4.2.10?slim=true)
|

---

### Release Notes

<details>
<summary>smithy-lang/smithy-typescript
(@&#8203;smithy/eventstream-codec)</summary>

###
[`v4.2.10`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#4210)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.9...@smithy/eventstream-codec@4.2.10)

##### Patch Changes

- Updated dependencies
\[[`d0954cc`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/d0954cc)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.13.0

###
[`v4.2.9`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#429)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.8...@smithy/eventstream-codec@4.2.9)

##### Patch Changes

-
[`03c3dc8`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/03c3dc8):
update for rollup build externalLiveBindings=false
- Updated dependencies
\[[`03c3dc8`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/03c3dc8)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.12.1
-
[@&#8203;smithy/util-hex-encoding](https://redirect.github.com/smithy/util-hex-encoding)@&#8203;4.2.1

###
[`v4.2.8`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#428)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.7...@smithy/eventstream-codec@4.2.8)

##### Patch Changes

- Updated dependencies
\[[`745867a`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/745867a)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.12.0

###
[`v4.2.7`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#427)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.6...@smithy/eventstream-codec@4.2.7)

##### Patch Changes

- Updated dependencies
\[[`9ccb841`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/9ccb841)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.11.0

###
[`v4.2.6`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#426)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.5...@smithy/eventstream-codec@4.2.6)

##### Patch Changes

- Updated dependencies
\[[`5a56762`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/5a56762)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.10.0

###
[`v4.2.5`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#425)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.4...@smithy/eventstream-codec@4.2.5)

##### Patch Changes

- Updated dependencies
\[[`3926fd7`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/3926fd7)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.9.0

###
[`v4.2.4`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#424)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.3...@smithy/eventstream-codec@4.2.4)

##### Patch Changes

- Updated dependencies
\[[`6da0ab3`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/6da0ab3)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.8.1

###
[`v4.2.3`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#423)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.2...@smithy/eventstream-codec@4.2.3)

##### Patch Changes

- Updated dependencies
\[[`8a2a912`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/8a2a912)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.8.0

###
[`v4.2.2`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#422)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.1...@smithy/eventstream-codec@4.2.2)

##### Patch Changes

- Updated dependencies
\[[`052d261`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/052d261)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.7.1

###
[`v4.2.1`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#4210)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.2.0...@smithy/eventstream-codec@4.2.1)

##### Patch Changes

- Updated dependencies
\[[`d0954cc`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/d0954cc)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.13.0

###
[`v4.2.0`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#420)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.1.1...@smithy/eventstream-codec@4.2.0)

##### Minor Changes

-
[`45ee67f`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/45ee67f):
update dist-cjs generation to use rollup

##### Patch Changes

- Updated dependencies
\[[`45ee67f`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/45ee67f)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.6.0
-
[@&#8203;smithy/util-hex-encoding](https://redirect.github.com/smithy/util-hex-encoding)@&#8203;4.2.0

###
[`v4.1.1`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#411)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.1.0...@smithy/eventstream-codec@4.1.1)

##### Patch Changes

- Updated dependencies
\[[`bb7c1c1`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/bb7c1c1)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.5.0

###
[`v4.1.0`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#410)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.0.5...@smithy/eventstream-codec@4.1.0)

##### Minor Changes

-
[`64cda93`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/64cda93):
set sideEffects bundler metadata

##### Patch Changes

-
[`f884df7`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/f884df7):
enforce consistent-type-imports
- Updated dependencies
\[[`64cda93`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/64cda93)]
- Updated dependencies
\[[`f884df7`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/f884df7)]
-
[@&#8203;smithy/util-hex-encoding](https://redirect.github.com/smithy/util-hex-encoding)@&#8203;4.1.0
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.4.0

###
[`v4.0.5`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#405)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.0.4...@smithy/eventstream-codec@4.0.5)

##### Patch Changes

- Updated dependencies
\[[`64e033f`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/64e033f)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.3.2

###
[`v4.0.4`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#404)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.0.3...@smithy/eventstream-codec@4.0.4)

##### Patch Changes

- Updated dependencies
\[[`358c1ff`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/358c1ff)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.3.1

###
[`v4.0.3`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#403)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.0.2...@smithy/eventstream-codec@4.0.3)

##### Patch Changes

- Updated dependencies
\[[`0547fab`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/0547fab)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.3.0

###
[`v4.0.2`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/eventstream-codec/CHANGELOG.md#402)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/eventstream-codec@4.0.1...@smithy/eventstream-codec@4.0.2)

##### Patch Changes

- Updated dependencies
\[[`e917e61`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/e917e61)]
-
[@&#8203;smithy/types](https://redirect.github.com/smithy/types)@&#8203;4.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 05:00 AM and 05:59 AM, only on
Friday ( * 5 * * 5 ) in timezone America/Los_Angeles, Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/vercel/ai).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDMuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@hono/node-server](https://redirect.github.com/honojs/node-server) |
[`1.13.7` →
`1.19.9`](https://renovatebot.com/diffs/npm/@hono%2fnode-server/1.13.7/1.19.9)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@hono%2fnode-server/1.19.9?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hono%2fnode-server/1.13.7/1.19.9?slim=true)
|

---

### Release Notes

<details>
<summary>honojs/node-server (@&#8203;hono/node-server)</summary>

###
[`v1.19.9`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.9)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.8...v1.19.9)

#### What's Changed

- fix(globals): Stop overwriting global.fetch by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;295](https://redirect.github.com/honojs/node-server/pull/295)

**Full Changelog**:
<honojs/node-server@v1.19.8...v1.19.9>

###
[`v1.19.8`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.8)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.7...v1.19.8)

#### What's Changed

- docs: add guide for listening to UNIX domain socket by
[@&#8203;TransparentLC](https://redirect.github.com/TransparentLC) in
[#&#8203;292](https://redirect.github.com/honojs/node-server/pull/292)
- fix(serve-static): Use Readable.toWeb in serveStatic by
[@&#8203;otya128](https://redirect.github.com/otya128) in
[#&#8203;293](https://redirect.github.com/honojs/node-server/pull/293)

#### New Contributors

- [@&#8203;TransparentLC](https://redirect.github.com/TransparentLC)
made their first contribution in
[#&#8203;292](https://redirect.github.com/honojs/node-server/pull/292)
- [@&#8203;otya128](https://redirect.github.com/otya128) made their
first contribution in
[#&#8203;293](https://redirect.github.com/honojs/node-server/pull/293)

**Full Changelog**:
<honojs/node-server@v1.19.7...v1.19.8>

###
[`v1.19.7`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.7)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.6...v1.19.7)

#### What's Changed

- fix: Fix for hono issue 4563 - incorrect content-length after
following symlink by
[@&#8203;tshmieldev](https://redirect.github.com/tshmieldev) in
[#&#8203;290](https://redirect.github.com/honojs/node-server/pull/290)
- chore: add `configVersion` to bun.lock by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;291](https://redirect.github.com/honojs/node-server/pull/291)

#### New Contributors

- [@&#8203;tshmieldev](https://redirect.github.com/tshmieldev) made
their first contribution in
[#&#8203;290](https://redirect.github.com/honojs/node-server/pull/290)

**Full Changelog**:
<honojs/node-server@v1.19.6...v1.19.7>

###
[`v1.19.6`](https://redirect.github.com/honojs/node-server/compare/v1.19.5...3cdef3feeb14792357a3664bc992188d7a261c1c)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.5...v1.19.6)

###
[`v1.19.5`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.5)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.4...v1.19.5)

#### What's Changed

- fix: cancel a readable stream if a writable stream is closed before a
readable stream is closed. by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;280](https://redirect.github.com/honojs/node-server/pull/280)

**Full Changelog**:
<honojs/node-server@v1.19.4...v1.19.5>

###
[`v1.19.4`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.4)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.3...v1.19.4)

#### What's Changed

- fix(serve-static): Add error handling in createStreamBody by
[@&#8203;thongdoan](https://redirect.github.com/thongdoan) in
[#&#8203;278](https://redirect.github.com/honojs/node-server/pull/278)

#### New Contributors

- [@&#8203;thongdoan](https://redirect.github.com/thongdoan) made their
first contribution in
[#&#8203;278](https://redirect.github.com/honojs/node-server/pull/278)

**Full Changelog**:
<honojs/node-server@v1.19.3...v1.19.4>

###
[`v1.19.3`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.3)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.2...v1.19.3)

#### What's Changed

- fix: Refactor promise check for response handling by
[@&#8203;kay-is](https://redirect.github.com/kay-is) in
[#&#8203;277](https://redirect.github.com/honojs/node-server/pull/277)

#### New Contributors

- [@&#8203;kay-is](https://redirect.github.com/kay-is) made their first
contribution in
[#&#8203;277](https://redirect.github.com/honojs/node-server/pull/277)

**Full Changelog**:
<honojs/node-server@v1.19.2...v1.19.3>

###
[`v1.19.2`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.2)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.1...v1.19.2)

#### What's Changed

- fix: better handle range parse to avoid NaN error by
[@&#8203;zwpaper](https://redirect.github.com/zwpaper) in
[#&#8203;276](https://redirect.github.com/honojs/node-server/pull/276)

#### New Contributors

- [@&#8203;zwpaper](https://redirect.github.com/zwpaper) made their
first contribution in
[#&#8203;276](https://redirect.github.com/honojs/node-server/pull/276)

**Full Changelog**:
<honojs/node-server@v1.19.1...v1.19.2>

###
[`v1.19.1`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.1)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.19.0...v1.19.1)

#### What's Changed

- fix: Keep lightweight request even if accessing method, url or headers
by [@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;274](https://redirect.github.com/honojs/node-server/pull/274)
- chore: add `packageManager` field in `package.json` by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;275](https://redirect.github.com/honojs/node-server/pull/275)

**Full Changelog**:
<honojs/node-server@v1.19.0...v1.19.1>

###
[`v1.19.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.19.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.18.2...v1.19.0)

#### What's Changed

- feat: add log when directory does not exists by
[@&#8203;Its-Just-Nans](https://redirect.github.com/Its-Just-Nans) in
[#&#8203;273](https://redirect.github.com/honojs/node-server/pull/273)

#### New Contributors

- [@&#8203;Its-Just-Nans](https://redirect.github.com/Its-Just-Nans)
made their first contribution in
[#&#8203;273](https://redirect.github.com/honojs/node-server/pull/273)

**Full Changelog**:
<honojs/node-server@v1.18.2...v1.19.0>

###
[`v1.18.2`](https://redirect.github.com/honojs/node-server/releases/tag/v1.18.2)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.18.1...v1.18.2)

#### What's Changed

- fix: Skip content-length assignment when transfer-encoding is chunked.
by [@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;271](https://redirect.github.com/honojs/node-server/pull/271)

**Full Changelog**:
<honojs/node-server@v1.18.1...v1.18.2>

###
[`v1.18.1`](https://redirect.github.com/honojs/node-server/releases/tag/v1.18.1)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.18.0...v1.18.1)

#### What's Changed

- fix(listener): Limit retries to a maximum of three. by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;267](https://redirect.github.com/honojs/node-server/pull/267)

**Full Changelog**:
<honojs/node-server@v1.18.0...v1.18.1>

###
[`v1.18.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.18.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.17.1...v1.18.0)

#### What's Changed

- feat: always respond `res.body` by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;262](https://redirect.github.com/honojs/node-server/pull/262)
- ci: add Node.js `v24` for CI by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;263](https://redirect.github.com/honojs/node-server/pull/263)
- fix(listener): In Node.js v24, some response bodies are not read to
the end until the next task queue. by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;265](https://redirect.github.com/honojs/node-server/pull/265)

**Full Changelog**:
<honojs/node-server@v1.17.1...v1.18.0>

###
[`v1.17.1`](https://redirect.github.com/honojs/node-server/releases/tag/v1.17.1)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.17.0...v1.17.1)

#### What's Changed

- fix: handle client disconnection without canceling stream by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;258](https://redirect.github.com/honojs/node-server/pull/258)
- fix: improve serve-static function by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;261](https://redirect.github.com/honojs/node-server/pull/261)

**Full Changelog**:
<honojs/node-server@v1.17.0...v1.17.1>

###
[`v1.17.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.17.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.16.0...v1.17.0)

#### What's Changed

- docs: separate description of autoCleanupIncoming by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;255](https://redirect.github.com/honojs/node-server/pull/255)
- chore: rename `server_socket.test.ts` to `server-socket.test.ts` by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;256](https://redirect.github.com/honojs/node-server/pull/256)
- feat(serve-static): support absolute path by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;257](https://redirect.github.com/honojs/node-server/pull/257)

**Full Changelog**:
<honojs/node-server@v1.16.0...v1.17.0>

###
[`v1.16.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.16.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.15.0...v1.16.0)

#### What's Changed

- feat: Clean up the incoming object if the request is not completely
finished. by [@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;252](https://redirect.github.com/honojs/node-server/pull/252)

**Full Changelog**:
<honojs/node-server@v1.15.0...v1.16.0>

###
[`v1.15.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.15.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.14.4...v1.15.0)

#### What's Changed

- feat(serve-static): pass context to `rewriteRequestPath` by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;247](https://redirect.github.com/honojs/node-server/pull/247)

**Full Changelog**:
<honojs/node-server@v1.14.4...v1.15.0>

###
[`v1.14.4`](https://redirect.github.com/honojs/node-server/releases/tag/v1.14.4)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.14.3...v1.14.4)

#### What's Changed

- fix: flush headers before sending data via readable stream by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;245](https://redirect.github.com/honojs/node-server/pull/245)

**Full Changelog**:
<honojs/node-server@v1.14.3...v1.14.4>

###
[`v1.14.3`](https://redirect.github.com/honojs/node-server/releases/tag/v1.14.3)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.14.2...v1.14.3)

#### What's Changed

- fix: set `RequestError` name properly by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;243](https://redirect.github.com/honojs/node-server/pull/243)

**Full Changelog**:
<honojs/node-server@v1.14.2...v1.14.3>

###
[`v1.14.2`](https://redirect.github.com/honojs/node-server/releases/tag/v1.14.2)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.14.1...v1.14.2)

#### What's Changed

- perf: keep using the lightweight Response object when retrieving
`headers`, `status`, and `ok`, and then drop the `getInternalBody`
function. by [@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;242](https://redirect.github.com/honojs/node-server/pull/242)

**Full Changelog**:
<honojs/node-server@v1.14.1...v1.14.2>

###
[`v1.14.1`](https://redirect.github.com/honojs/node-server/releases/tag/v1.14.1)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.14.0...v1.14.1)

#### What's Changed

- fix: Handle Response Errors Correctly by
[@&#8203;jpulec](https://redirect.github.com/jpulec) in
[#&#8203;236](https://redirect.github.com/honojs/node-server/pull/236)

#### New Contributors

- [@&#8203;jpulec](https://redirect.github.com/jpulec) made their first
contribution in
[#&#8203;236](https://redirect.github.com/honojs/node-server/pull/236)

**Full Changelog**:
<honojs/node-server@v1.14.0...v1.14.1>

###
[`v1.14.0`](https://redirect.github.com/honojs/node-server/releases/tag/v1.14.0)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.13.8...v1.14.0)

#### What's Changed

- chore: use Bun as a package manager by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;224](https://redirect.github.com/honojs/node-server/pull/224)
- fix:
[#&#8203;230](https://redirect.github.com/honojs/node-server/issues/230)
use node:fs specifier prefix vs. fs import by
[@&#8203;firxworx](https://redirect.github.com/firxworx) in
[#&#8203;231](https://redirect.github.com/honojs/node-server/pull/231)
- feat: accept absolute-form URI for request-target by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;232](https://redirect.github.com/honojs/node-server/pull/232)
- fix: fix the return type of `responseViaCache` by
[@&#8203;yusukebe](https://redirect.github.com/yusukebe) in
[#&#8203;234](https://redirect.github.com/honojs/node-server/pull/234)

#### New Contributors

- [@&#8203;firxworx](https://redirect.github.com/firxworx) made their
first contribution in
[#&#8203;231](https://redirect.github.com/honojs/node-server/pull/231)

**Full Changelog**:
<honojs/node-server@v1.13.8...v1.14.0>

###
[`v1.13.8`](https://redirect.github.com/honojs/node-server/releases/tag/v1.13.8)

[Compare
Source](https://redirect.github.com/honojs/node-server/compare/v1.13.7...v1.13.8)

#### What's Changed

- fix: export ServerOptions type by
[@&#8203;aryasaatvik](https://redirect.github.com/aryasaatvik) in
[#&#8203;222](https://redirect.github.com/honojs/node-server/pull/222)
- fix: re-read request body from `incoming.rawBody` if available by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;223](https://redirect.github.com/honojs/node-server/pull/223)
- fix: Avoid error if connection is aborted before internal request
object is created by
[@&#8203;usualoma](https://redirect.github.com/usualoma) in
[#&#8203;221](https://redirect.github.com/honojs/node-server/pull/221)

#### New Contributors

- [@&#8203;aryasaatvik](https://redirect.github.com/aryasaatvik) made
their first contribution in
[#&#8203;222](https://redirect.github.com/honojs/node-server/pull/222)

**Full Changelog**:
<honojs/node-server@v1.13.7...v1.13.8>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 05:00 AM and 05:59 AM, only on
Friday ( * 5 * * 5 ) in timezone America/Los_Angeles, Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/vercel/ai).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDMuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
|
[@smithy/util-utf8](https://redirect.github.com/smithy-lang/smithy-typescript/tree/main/packages/util-utf8)
([source](https://redirect.github.com/smithy-lang/smithy-typescript/tree/HEAD/packages/util-utf8))
| [`4.0.0` →
`4.2.1`](https://renovatebot.com/diffs/npm/@smithy%2futil-utf8/4.0.0/4.2.1)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@smithy%2futil-utf8/4.2.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@smithy%2futil-utf8/4.0.0/4.2.1?slim=true)
|

---

### Release Notes

<details>
<summary>smithy-lang/smithy-typescript
(@&#8203;smithy/util-utf8)</summary>

###
[`v4.2.1`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/util-utf8/CHANGELOG.md#421)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/util-utf8@&#8203;4.2.0...@smithy/util-utf8@&#8203;4.2.1)

##### Patch Changes

-
[`03c3dc8`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/03c3dc8):
update for rollup build externalLiveBindings=false
- Updated dependencies
\[[`03c3dc8`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/03c3dc8)]
-
[@&#8203;smithy/util-buffer-from](https://redirect.github.com/smithy/util-buffer-from)@&#8203;4.2.1

###
[`v4.2.0`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/util-utf8/CHANGELOG.md#420)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/util-utf8@&#8203;4.1.0...@smithy/util-utf8@&#8203;4.2.0)

##### Minor Changes

-
[`45ee67f`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/45ee67f):
update dist-cjs generation to use rollup

##### Patch Changes

- Updated dependencies
\[[`45ee67f`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/45ee67f)]
-
[@&#8203;smithy/util-buffer-from](https://redirect.github.com/smithy/util-buffer-from)@&#8203;4.2.0

###
[`v4.1.0`](https://redirect.github.com/smithy-lang/smithy-typescript/blob/HEAD/packages/util-utf8/CHANGELOG.md#410)

[Compare
Source](https://redirect.github.com/smithy-lang/smithy-typescript/compare/@smithy/util-utf8@&#8203;4.0.0...@smithy/util-utf8@&#8203;4.1.0)

##### Minor Changes

-
[`64cda93`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/64cda93):
set sideEffects bundler metadata

##### Patch Changes

- Updated dependencies
\[[`64cda93`](https://redirect.github.com/smithy-lang/smithy-typescript/commit/64cda93)]
-
[@&#8203;smithy/util-buffer-from](https://redirect.github.com/smithy/util-buffer-from)@&#8203;4.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 05:00 AM and 05:59 AM, only on
Friday ( * 5 * * 5 ) in timezone America/Los_Angeles, Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/vercel/ai).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDMuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/xai@4.0.0-beta.8

### Patch Changes

-   4799fa5: chore(provider/xai): update provider to use v4 types

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

the package providers still relied on V3 specs instead of the v4 ones
(for main branch)

## Summary

following packages were updated to use v4 spec
- started for `baseten`
- relied on `openai-compat`, on which relied
  - `cerebras`
  - `deepinfra`
  - `fireworks`
  - `moonshotai`
  - `togetherai`
  - `vercel`

## Manual Verification

na

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Background

Migrate the `open-responses` provider to use V4 types from the
`provider` package, aligning it with the ongoing spec version upgrade
across all providers.

## Summary

Renamed all V3 type references to their V4 equivalents and updated
`specificationVersion` from `'v3'` to `'v4'`. This is a pure rename — V3
and V4 types are currently identical.

Similar to e.g. #13375, #13417, etc.

## Manual Verification

N/A — pure type rename, verified via full type check and running tests.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
## Background

Migrate the `perplexity` provider to use V4 types from the `provider`
package, aligning it with the ongoing spec version upgrade across all
providers.

## Summary

Renamed all V3 type references to their V4 equivalents and updated
`specificationVersion` from `'v3'` to `'v4'`. This is a pure rename — V3
and V4 types are currently identical.

Similar to e.g. #13375, #13417, etc.

## Manual Verification

N/A — pure type rename, verified via full type check and running tests.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
## Background

Migrate the `prodia` provider to use V4 types from the `provider`
package, aligning it with the ongoing spec version upgrade across all
providers.

## Summary

Renamed all V3 type references to their V4 equivalents and updated
`specificationVersion` from `'v3'` to `'v4'`. This is a pure rename — V3
and V4 types are currently identical.

Similar to e.g. #13375, #13417, etc.

## Manual Verification

N/A — pure type rename, verified via full type check and running tests.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
## Background

Migrate the `replicate` provider to use V4 types from the `provider`
package, aligning it with the ongoing spec version upgrade across all
providers.

## Summary

Renamed all V3 type references to their V4 equivalents and updated
`specificationVersion` from `'v3'` to `'v4'`. This is a pure rename — V3
and V4 types are currently identical.

Similar to e.g. #13375, #13417, etc.

## Manual Verification

N/A — pure type rename, verified via full type check and running tests.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
## Background

Migrate the `revai` provider to use V4 types from the `provider`
package, aligning it with the ongoing spec version upgrade across all
providers.

## Summary

Renamed all V3 type references to their V4 equivalents and updated
`specificationVersion` from `'v3'` to `'v4'`. This is a pure rename — V3
and V4 types are currently identical.

Similar to e.g. #13375, #13417, etc.

## Manual Verification

N/A — pure type rename, verified via full type check and running tests.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

N/A
## Summary

Adds Node.js 24 to the CI test matrix and fixes all build/test
incompatibilities.

Closes #13357

## Changes

### CI & config
- Adds Node.js 24 to `.github/workflows/ci.yml` test matrix
- Adds `^24.0.0` to root `package.json` engines field

### SvelteKit example build fix
- Updates `@sveltejs/adapter-vercel` from v5 to v6 and `@sveltejs/kit`
to v2.55+ in `examples/sveltekit-openai` — adapter-vercel v5 only
supported Node 18/20/22, v6 adds Node 24

### Vitest v2 → v4 upgrade
Node 24 ships with undici v7, which enforces strict `AbortSignal`
instanceof checks in `fetch()`. The jsdom environment in vitest v2/v3
replaces the global `AbortController`/`AbortSignal` with its own
polyfill, and Node 24's native fetch rejects these with `"Expected
signal to be an instance of AbortSignal"`. Vitest v4 stops overriding
these globals
([vitest-dev/vitest#8390](vitest-dev/vitest#8390)),
fixing the incompatibility.

#### Test adaptations required by vitest v4

**`vi.fn()` arrow functions can no longer be used as constructors** —
vitest v4 wraps mock functions differently, so arrow-function mocks fail
with `TypeError: is not a constructor` when called with `new`. Fixed by
changing arrow functions to `function` expressions in mock
implementations:
-
`packages/amazon-bedrock/src/bedrock-event-stream-response-handler.test.ts`
- `packages/baseten/src/baseten-provider.unit.test.ts`
- `packages/gateway/src/gateway-provider.test.ts`
-
`packages/google-vertex/src/google-vertex-auth-google-auth-library.test.ts`

**`toStrictEqual(expect.objectContaining(...))` is stricter** — vitest
v4 now requires that `undefined` properties on the actual object (e.g.
`metadata: undefined`) also appear in the expected pattern. Since these
tests intentionally do partial matching, changed to
`toEqual(expect.objectContaining(...))`:
- `packages/angular/src/lib/chat.ng.test.ts`
- `packages/svelte/src/chat.svelte.test.ts`

**`toThrowError` with an Error object checks all properties** —
previously only checked `message`, now checks every property. The
anthropic overloaded-error test compared `requestBodyValues: {}` against
the full request body. Changed to try/catch with individual property
assertions:
- `packages/anthropic/src/anthropic-messages-language-model.test.ts`

**`test.workspace` renamed to `test.projects`**:
- `packages/svelte/vite.config.ts`

### Other test fixes
- `packages/openai` and `packages/elevenlabs`: Made `File` object
snapshot tests Node version-agnostic (Node 24 serializes additional
`Symbol(state)` on File objects)
- `packages/mcp`: Fixed race condition in SSE reconnect test where
`server.calls[2]` was accessed before the fire-and-forget
`openInboundSse()` completed — added `vi.waitFor()`
- Pinned `tinyexec` to 1.0.2 via pnpm overrides (1.0.3 has broken
package exports on npm)

### Backports 

- v6: #13440
- v5: #13441

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/alibaba@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/baseten@2.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/cerebras@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/deepinfra@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/fireworks@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/huggingface@2.0.0-beta.3

### Patch Changes

-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/moonshotai@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/open-responses@2.0.0-beta.2

### Patch Changes

- 8831e80: chore(provider/open-responses): update provider to use v4
types

## @ai-sdk/openai-compatible@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4

## @ai-sdk/perplexity@4.0.0-beta.2

### Patch Changes

-   803852f: chore(provider/perplexity): update provider to use v4 types

## @ai-sdk/prodia@2.0.0-beta.2

### Patch Changes

-   77600ba: chore(provider/prodia): update provider to use v4 types

## @ai-sdk/replicate@3.0.0-beta.2

### Patch Changes

-   c434fd2: chore(provider/replicate): update provider to use v4 types

## @ai-sdk/revai@3.0.0-beta.2

### Patch Changes

-   f7f458b: chore(provider/revai): update provider to use v4 types

## @ai-sdk/togetherai@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/vercel@3.0.0-beta.3

### Patch Changes

-   8f3e1da: chore(openai-compat): update v3 specs to v4
-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

## @ai-sdk/xai@4.0.0-beta.9

### Patch Changes

-   Updated dependencies [8f3e1da]
    -   @ai-sdk/openai-compatible@3.0.0-beta.3

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

the package providers still relied on V3 specs instead of the v4 ones
(for main branch)

## Summary

- update to use v4 spec

## Manual Verification

na

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/assemblyai@3.0.0-beta.2

### Patch Changes

-   f6d2127: chore(assembly-ai): update v3 specs to v4

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

The base64 data in question includes a several MB sized image. This can
lead to parsing being slow, leading to intermittent failures completely
unrelated to the changes made (see e.g.
https://github.com/vercel/ai/actions/runs/23155408928/job/67274515942?pr=13482
or
https://github.com/vercel/ai/actions/runs/23155646090/job/67275349940?pr=13481).

## Summary

* Increases timeout for the test to 6s (since it always exceeded 5s only
_slightly_)
* No changeset included because it's a test-only change

## Manual Verification

N/A

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

#13358
…3486)

## Background

The Azure provider's image generation test fixtures contained a full
1.7MB cartoon raccoon PNG encoded as base64. This appeared in three
places: the streaming chunks fixture (6.9MB), the JSON fixture (2.1MB),
and the resulting snapshot (2.3MB), totaling ~11.3MB. The tests only
validate streaming behavior and response structure, not image content,
so the actual image payload is irrelevant.

In CI (Node 22), the `should stream image generation tool results
include` test was taking **3–10 seconds** due to parsing and streaming
this data, compared to ~1–14ms for every other test in the file.

## Summary

- Replaced full-size base64 PNG with a minimal 1x1 pixel PNG (69 bytes)
in both `azure-image-generation-tool.1.chunks.txt` and
`azure-image-generation-tool.1.json`
- Updated corresponding test snapshots

| File | Before | After |
|---|---|---|
| `azure-image-generation-tool.1.chunks.txt` | 6.9 MB | 12.6 KB |
| `azure-image-generation-tool.1.json` | 2.1 MB | 1.7 KB |
| `azure-openai-provider.test.ts.snap` | 2.3 MB | 200 KB |
| **Total** | **~11.3 MB** | **~214 KB** |

## Manual Verification

All 55 tests in `azure-openai-provider.test.ts` pass on both node and
edge configurations. The target test went from 171ms to 2ms locally.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
)

## Background

#13167 

When setting `strict: true` for tools and calling anthropic providers
via the google vertex provider, the vertex provider doesn't accept the
property `strict` and if passed - will throw an error that looks like
this `{"type":"invalid_request_error","message":"tools.0.custom.strict:
Extra inputs are not permitted"}`

this behaviour needed to be documented via a warning so that users know
the difference.

## Summary

- introduced a `supportsStrictTools` property in both anthropic and the
google-vertex provider
- anthropic sets that value to true by default; google vertex is false
- theconditional logic for setting strict: true for tools in anthropic
provider now no longer depends on the `supportsStructuredOutput` flag

## Manual Verification

<details>
<summary>repro (run it before and after to observe warning)
</summary>

```ts
import { vertexAnthropic } from '@ai-sdk/google-vertex/anthropic';
import { generateText, tool } from 'ai';
import { z } from 'zod';
import { run } from '../../lib/run';

const conditions = [
  { name: 'sunny', minTemperature: -5, maxTemperature: 35 },
  { name: 'snowy', minTemperature: -10, maxTemperature: 0 },
  { name: 'rainy', minTemperature: 0, maxTemperature: 15 },
  { name: 'cloudy', minTemperature: 5, maxTemperature: 25 },
];

run(async () => {
  const result = await generateText({
    model: vertexAnthropic('claude-sonnet-4-6'),
    maxOutputTokens: 512,
    tools: {
      weather: tool({
        description: 'Get weather by city and unit',
        inputSchema: z.object({
          city: z.string(),
          unit: z.enum(['celsius', 'fahrenheit']),
          daysFromNow: z.number().min(1).default(1),
        }),
        execute: async ({ city }) => {
          const condition =
            conditions[Math.floor(Math.random() * conditions.length)];
          return {
            city,
            condition: condition.name,
            temperature:
              Math.floor(
                Math.random() *
                  (condition.maxTemperature - condition.minTemperature + 1),
              ) + condition.minTemperature,
          };
        },
        strict: true,
      }),
      cityAttractions: tool({
        inputSchema: z.object({ city: z.string() }),
      }),
    },
    prompt:
      'What is the weather in San Francisco and what attractions should I visit?',
  });

  for (const toolCall of result.toolCalls) {
    if (toolCall.dynamic) {
      continue;
    }

    switch (toolCall.toolName) {
      case 'cityAttractions': {
        toolCall.input.city;
        break;
      }

      case 'weather': {
        toolCall.input.city;
        break;
      }
    }
  }

  for (const toolResult of result.toolResults) {
    if (toolResult.dynamic) {
      continue;
    }

    switch (toolResult.toolName) {

      case 'weather': {
        toolResult.input.city; 
        toolResult.output.city; 
        toolResult.output.temperature;
        break;
      }
    }
  }

  console.log(JSON.stringify(result, null, 2));
});
```
</details>

the same code will throw an error if L183 in
`packages/google-vertex/src/anthropic/google-vertex-anthropic-provider.ts‎`
is changed to true (hence the warning)

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Related Issues

fixes #13167
…#13489)

## Background

PR #13483 added a 6s timeout to the `should stream image generation tool
results include` test because the large fixture (6.9MB of base64 image
data) caused it to exceed the default 5s timeout in CI.

PR #13486 fixed the root cause by replacing the large image with a
minimal 1x1 pixel PNG, reducing the fixture from 6.9MB to 12.6KB. The
test now runs in ~2ms locally, so the extended timeout is no longer
needed.

## Summary

Reverts #13483 to remove the 6s timeout and restore the original test
structure.

## Related Issues

- Reverts #13483
- Follow-up to #13486
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/amazon-bedrock@5.0.0-beta.4

### Patch Changes

- f05a40d: fix(vertex): throw warning when strict: true for
vertexAnthropic
-   Updated dependencies [f05a40d]
    -   @ai-sdk/anthropic@4.0.0-beta.4

## @ai-sdk/anthropic@4.0.0-beta.4

### Patch Changes

- f05a40d: fix(vertex): throw warning when strict: true for
vertexAnthropic

## @ai-sdk/google-vertex@5.0.0-beta.12

### Patch Changes

- f05a40d: fix(vertex): throw warning when strict: true for
vertexAnthropic
-   Updated dependencies [f05a40d]
    -   @ai-sdk/anthropic@4.0.0-beta.4

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

The v4 language model spec types were incorrectly importing and using
shared v3 types (`SharedV3ProviderOptions`, `SharedV3ProviderMetadata`,
`SharedV3Headers`, `SharedV3Warning`) instead of their v4 equivalents.
This meant the v4 spec was not self-contained and depended on v3 shared
types.

Initially pointed out by @lgrammel in
#13352 (comment).

## Summary

Updated all v4 language model spec files to import from `shared/v4`
instead of `shared/v3`, using the correct `SharedV4*` types throughout.
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## ai@7.0.0-beta.18

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/gateway@4.0.0-beta.11
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/alibaba@2.0.0-beta.5

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/amazon-bedrock@5.0.0-beta.5

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/anthropic@4.0.0-beta.5
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/angular@3.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18
-   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/anthropic@4.0.0-beta.5

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/assemblyai@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/azure@4.0.0-beta.7

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai@4.0.0-beta.7
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/baseten@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/black-forest-labs@2.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/bytedance@2.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/cerebras@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/cohere@4.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/deepgram@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/deepinfra@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/deepseek@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/devtools@1.0.0-beta.1

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1

## @ai-sdk/elevenlabs@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/fal@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/fireworks@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/gateway@4.0.0-beta.11

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/gladia@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/google@4.0.0-beta.10

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/google-vertex@5.0.0-beta.13

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/anthropic@4.0.0-beta.5
    -   @ai-sdk/google@4.0.0-beta.10
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/groq@4.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/huggingface@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/hume@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/klingai@4.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/langchain@3.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18

## @ai-sdk/llamaindex@3.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18

## @ai-sdk/lmnt@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/luma@3.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/mcp@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/mistral@4.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/moonshotai@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/open-responses@2.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/openai@4.0.0-beta.7

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/openai-compatible@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/perplexity@4.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/prodia@2.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/provider@4.0.0-beta.1

### Patch Changes

-   5c2a5a2: fix(provider): fix v4 spec to not use shared v3 types

## @ai-sdk/provider-utils@5.0.0-beta.2

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1

## @ai-sdk/react@4.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18
-   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/replicate@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/revai@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/rsc@3.0.0-beta.19

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   ai@7.0.0-beta.18
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/svelte@5.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18
-   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/togetherai@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/valibot@3.0.0-beta.2

### Patch Changes

-   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/vercel@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/vue@4.0.0-beta.18

### Patch Changes

-   ai@7.0.0-beta.18
-   @ai-sdk/provider-utils@5.0.0-beta.2

## @ai-sdk/xai@4.0.0-beta.10

### Patch Changes

-   Updated dependencies [5c2a5a2]
    -   @ai-sdk/provider@4.0.0-beta.1
    -   @ai-sdk/openai-compatible@3.0.0-beta.4
    -   @ai-sdk/provider-utils@5.0.0-beta.2

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

The tool search tools don't require the beta header to be passed anymore
in the request ([removed from the
documentation](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool))

it was still passed in the request with AI SDK. When passed, it is
rejected by providers such as Google Vertex (explored in PR
#13497 )

## Summary

remove the addition of the beta header `advanced-tool-use-2025-11-20` in
the prepare tools file

## Manual Verification

verified by running the existing examples before and after the fix:
-
`examples/ai-functions/src/generate-text/anthropic/tool-search-regex.ts`
-
`examples/ai-functions/src/generate-text/anthropic/tool-search-deferred-bm25.ts`
-
`examples/ai-functions/src/generate-text/anthropic/tool-search-bm25.ts`

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @ai-sdk/amazon-bedrock@5.0.0-beta.6

### Patch Changes

-   Updated dependencies [21d1ee3]
    -   @ai-sdk/anthropic@4.0.0-beta.6

## @ai-sdk/anthropic@4.0.0-beta.6

### Patch Changes

- 21d1ee3: fix(anthropic): skip passing beta header for tool search
tools

## @ai-sdk/google-vertex@5.0.0-beta.14

### Patch Changes

-   Updated dependencies [21d1ee3]
    -   @ai-sdk/anthropic@4.0.0-beta.6

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
## Background

See #13321

## Summary

* Adds new type `reasoning-file` for files that are part of reasoning
rather than actual content
    * Part of `provider` v4 spec
* Relevant generate result, content part, stream result, and stream
parts in `ai` are expanded accordingly
* **bug fix:** simply by introducing `reasoning-file` (and thus breaking
it apart from `file`), we fix the bug where reasoning files would before
be included in top-level `files` (e.g. in `GenerateTextResult` or
`StepResult`), which would lead to a duplicate entry in many scenarios
* updates `google` language model to use `reasoning-file` instead of
`file` with provider metadata where applicable
* updates relevant `google` examples which were previously based on the
provider options workaround

FYI:
9c1c48d
shows a glimpse of what supporting this in future 3P code could look
like.

## Manual Verification

Run the examples modified here.

Specifically, run
`examples/ai-functions/src/generate-text/google/image-thinking-multi-step.ts`
against this branch and against `main`: With `main`, you'll see that
`files` will include the same image twice (once as part of reasoning,
once as the actual output) - this is the bug this PR effectively fixes.

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

Fixes #13321
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## ai@7.0.0-beta.19

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/gateway@4.0.0-beta.12

## @ai-sdk/alibaba@2.0.0-beta.6

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/amazon-bedrock@5.0.0-beta.7

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/anthropic@4.0.0-beta.7

## @ai-sdk/angular@3.0.0-beta.19

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   ai@7.0.0-beta.19

## @ai-sdk/anthropic@4.0.0-beta.7

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/assemblyai@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/azure@4.0.0-beta.8

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai@4.0.0-beta.8

## @ai-sdk/baseten@2.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/black-forest-labs@2.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/bytedance@2.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/cerebras@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/cohere@4.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/deepgram@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/deepinfra@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/deepseek@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/devtools@1.0.0-beta.2

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/elevenlabs@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/fal@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/fireworks@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/gateway@4.0.0-beta.12

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/gladia@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/google@4.0.0-beta.11

### Patch Changes

- f7d4f01: feat(provider): add support for `reasoning-file` type for
files that are part of reasoning
-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/google-vertex@5.0.0-beta.15

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/google@4.0.0-beta.11
    -   @ai-sdk/anthropic@4.0.0-beta.7

## @ai-sdk/groq@4.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/huggingface@2.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/hume@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/klingai@4.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/langchain@3.0.0-beta.19

### Patch Changes

-   ai@7.0.0-beta.19

## @ai-sdk/llamaindex@3.0.0-beta.19

### Patch Changes

-   ai@7.0.0-beta.19

## @ai-sdk/lmnt@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/luma@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/mcp@2.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/mistral@4.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/moonshotai@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/open-responses@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/openai@4.0.0-beta.8

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/openai-compatible@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/perplexity@4.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/prodia@2.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/provider@4.0.0-beta.2

### Patch Changes

- f7d4f01: feat(provider): add support for `reasoning-file` type for
files that are part of reasoning

## @ai-sdk/provider-utils@5.0.0-beta.3

### Patch Changes

- f7d4f01: feat(provider): add support for `reasoning-file` type for
files that are part of reasoning
-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/react@4.0.0-beta.19

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   ai@7.0.0-beta.19

## @ai-sdk/replicate@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/revai@3.0.0-beta.4

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2

## @ai-sdk/rsc@3.0.0-beta.20

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   ai@7.0.0-beta.19

## @ai-sdk/svelte@5.0.0-beta.19

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   ai@7.0.0-beta.19

## @ai-sdk/togetherai@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/valibot@3.0.0-beta.3

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3

## @ai-sdk/vercel@3.0.0-beta.5

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

## @ai-sdk/vue@4.0.0-beta.19

### Patch Changes

-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   ai@7.0.0-beta.19

## @ai-sdk/xai@4.0.0-beta.11

### Patch Changes

- f7d4f01: feat(provider): add support for `reasoning-file` type for
files that are part of reasoning
-   Updated dependencies [f7d4f01]
    -   @ai-sdk/provider-utils@5.0.0-beta.3
    -   @ai-sdk/provider@4.0.0-beta.2
    -   @ai-sdk/openai-compatible@3.0.0-beta.5

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
…bsite (#13481)

docs: better description for 'toModelOutput' to clarify usage.

<!--
Welcome to contributing to AI SDK! We're excited to see your changes.

We suggest you read the following contributing guide we've created
before submitting:

https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

It's not clear how to properly use 
```ts
tool({
   toModelOutput: () => {
     // ???
   }
});
```

It's clear how to write code inside the function body, what is not clear
is:
- where (server/client) the SDK invoke this function, and when?
- is needed extra setup for this function to work properly?

---

In my first usage, I cannot make the sdk invoke the function
(console.log not triggerd), and after a LLM session with DeepWiki I
found that the correct usage is this

```ts
const myTool = tool({
  // ...
  toModelOutput: // ...
})

const tools = {
  myTool,
}

const modelMessages = await convertToModelMessages(
  uiMessages,
  { tools }
});

const stream = streamText({
  messages: modelMessages,
  tools,
});
    
```



## Summary

Updated the description of the docs website.  

## Checklist

<!--
Do not edit this list. Leave items unchecked that don't apply. If you
need to track subtasks, create a new "## Tasks" section

Please check if the PR fulfills the following requirements:
-->

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [ ] I have reviewed this pull request (self-review)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in
future PRs.
Remove the section if it's not needed.
 -->

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->

---------

Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
Co-authored-by: Felix Arntz <flixos90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.